import request from '@/utils/request'

export function getSpecialList(query) {
  return request({
    url: '/knowledge/special/getList',
    method: 'post',
    data: query
  })
}

export function getSpecialDocumentationList(query){
  return request({
    url: '/knowledge/special/getDocumentationList',
    method: 'post',
    data: query
  })
}

export function getSpecialUsableList(query){
    return request({
      url: '/knowledge/special/getUsableList',
      method: 'post',
      data: query
    })
}

export function getSpecialDetail(id) {
  return request({
    url: '/knowledge/special/getDetail',
    method: 'post',
    data: id
  })
}

export function saveSpecial(formdata) {
  return request({
    url: '/knowledge/special/save',
    method: 'post',
    data: formdata
  })
}
export function changeStatusBySpecialID(id) {
  return request({
    url: '/knowledge/special/change-status',
    method: 'post',
    data: id
  })
}

export function removeSpecialByID(id) {
  return request({
    url: '/knowledge/special/remove',
    method: 'post',
    data: id
  })
}

export function deleteSpecialByID(id) {
  return request({
    url: '/knowledge/special/delete',
    method: 'post',
    data: id
  })
}

